<div style="display: flex; height: 100%;">
  <div style="width:20%;">
    <gn-resources-organization-tree #tree (onSelectionChanged)="refreshTable()"></gn-resources-organization-tree>
  </div>
  <div style="width: 80%; padding-left: 1rem;">
    <gn-buttons>
      <button mat-raised-button gnTableButtonNew [data]="{parentId: tree.selectedData.id, parentPath: tree.selectedData.pathId}"
              gnDialog [content]="typeEdit" header="组织机构信息" (onClose)="refreshData()"></button>
      <button mat-raised-button gnTableButtonEdit [table]="table" [data]="{id: table.selectedId}" gnDialog
              [content]="typeEdit" header="组织机构信息" (onClose)="refreshData()"></button>
      <button mat-raised-button gnTableButtonDelete [table]="table" (click)="delete()"></button>
    </gn-buttons>
    <gn-table idField="id" url="/RESOURCES-SERVICE/organizations"
              [columns]="columns" [autoLoad]="false" (deleted)="tree.tree.reloadCurrent()">
    </gn-table>
  </div>
</div>
